package myweb;

import java.util.Stack;

public class MainClass {
public static void main (String[] args ){
	int i = 0;
	Stack<String> stack = new Stack<String>();
	stack.push("this");
	stack.push("is");
	stack.push("a");
	stack.push("test");
	stack.push(".");
	System.out.println(stack);
	
	while(!stack.isEmpty()){
		System.out.println(stack.pop());
		
		
	}
		
}
	
	
}
